<?php

namespace app\admin\model;

use think\model\Relation;

class Pay extends Relation {

        protected $link = [
            'pay_cate' => [
		'mapping_type' => BELONGS_TO,
                'class_name' => 'Pay_cate',
                'foreign_key' => 'cid',
                'parent_key' => 'id',
                'mapping_fields' => 'name,bankurl',
                'as_fields' => 'name,bankurl'
	    ]            
        ];

}
